//导入系统设置
import {appPort} from './config/setting.js'
import {routes} from './router/index.js'
import {regTemplating} from './render/index.js'

import koa from 'koa'
import bodyParser from 'koa-bodyparser'



let app = new koa ();
app.use(regTemplating())

app.use(bodyParser())

app.use(routes())

app.listen(appPort)

console.log(`http:localhost:${appPort}`);
